<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Camp/CampsitePhasePeople.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/Camp/CampsitePhasePeople.js";
    // import ViewGrid from "@/components/basic/ViewGrid.vue";
    import ViewGrid from "@/components/basic/viewT.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '日程规划',
                    name: 'V_camp_schedule',
                    url: "/V_camp_schedule/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {campsite_name:"",phase_name:""},
                searchFormOptions: [
                    [
                        { 'title': '营地名称', 'field': 'campsite_name', 'type': 'text' },
                        { 'title': '营期名称', 'field': 'phase_name', 'type': 'text' },
                    ]
                ],
                columns: [
                    // {field:'campsite_id_fk',title:'营种ID',type:'int',width:90,align:'left',sortable:true},
                       {field:'campsite_name',title:'营地名称',type:'string',width:120,align:'left'},
                       {field:'phase_name',title:'营期名称',type:'string',width:120,align:'left'},
                       {field:'teamnum',title:'团队数',type:'string',width:120,align:'left'},
                       {field:'groupnum',title:'总小组数',type:'string',width:120,align:'left'},
                        {field:'campGroup',title:'小组',type:'string',width:120,align:'left'},
                        {field:'camp_number',title:'营员人数',type:'string',width:120,align:'left'},
                      //  {field:'campsitePeopleId',title:'营员ID',type:'int',width:90,align:'left'},
                      //  {field:'campsitePhaseId',title:'营地批次ID',type:'int',width:90,align:'left'},
                      //  {field:'createDate',title:'创建时间',type:'datetime',width:90,align:'left',sortable:true},
                      //  {field:'createID',title:'创建人id',type:'int',width:90,hidden:true,align:'left'},
                      //  {field:'creator',title:'创建人',type:'string',width:220,align:'left'},
                      //  {field:'id',title:'id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                      //  {field:'modifier',title:'修改人',type:'string',width:220,align:'left'},
                      //  {field:'modifyDate',title:'修改时间',type:'datetime',width:90,align:'left',sortable:true},
                      //  {field:'modifyID',title:'修改人id',type:'int',width:90,hidden:true,align:'left'},
                       {field:'camp_status',title:'状态',type:'string',width:90,align:'left'},
                      ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
